import os
import sys
import django

base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(base_dir)

os.environ.setdefault("DJANGO_SETTINGS_MODULE","mtb.settings")

# 启动django
django.setup()

from apps.base import models

models.UserInfo.objects.create(username='wupeiqi',password='123456')